<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	  layout:decorate="~{admin/common/common}">
<head>
	<title>编辑</title>
</head>
<body layout:fragment="content">
<article class="page-container">
	<form class="form form-horizontal" id="form-server-edit" >
    <input type="hidden" th:id="id" th:name="id" th:value="${model.id}" />
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>服务编码</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" th:value="${model.serverCode}" placeholder="请确保在整个服务中的唯一性" id="serverCode" th:name="serverCode"/>
		</div>
	</div>
    <div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>服务名称</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" th:value="${model.serverName}" placeholder="不能为空" id="serverName" th:name="serverName"/>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">服务跳转地址</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" th:value="${model.redirectUrl}" id="redirectUrl" th:name="redirectUrl"/>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>服务类型</label>
		<div class="formControls col-xs-8 col-sm-9 skin-minimal">
			<div class="radio-box">
				<input type="radio" id="sex-1" th:name="serverType" th:value="1" th:checked="${model.serverType} eq 1"/>
				<label for="sex-1">停车场</label>
			</div>
			<div class="radio-box">
				<input type="radio" id="sex-2" name="serverType" th:name="serverType" th:value="0" th:checked="${model.serverType} eq 1" />
				<label for="sex-2">门禁</label>
			</div>
		</div>
	</div>
	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>描述</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" th:value="${model.description}" class="input-text" value="" placeholder="服务的说明信息" id="description" th:name="description"/>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="submit" value="提交"/>
		</div>
	</div>
	</form>
</article>

<script type="text/javascript" th:src="@{/js/edge/server/edit.js}"></script>
</body>
</html>